<div class="col-md-12">
    <div class="panel panel-primary">
        <div class="panel-body">
            <div class="row-fluid">
                <div class="col-md-4">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">微信</h3>
                            <div class="btn-group pull-right">
                                <a class="btn btn-success" href="/admin/appwx/">进入</a>
                            </div>
                        </div>
                        {{ content() }}
                        <div class="panel-body">
                            <div class="row">
                                <p><label>图文总数：&nbsp;</label><span>{{imgcount}}</span></p>
                                <p><label>文本总数：&nbsp;</label><span>{{textcount}}</span></p>
                                <p><label>图文点击数量：&nbsp;</label><span>{{count}}</span></p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-8">
                    <!-- START BAR CHART -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">最近一周一览图</h3>
                        </div>
                        <div class="panel-body">
                            <div id="morris-bar-example" style="height: 300px;"></div>
                        </div>
                    </div>
                    <!-- END BAR CHART -->
                </div>

            </div>

        </div>
    </div>
</div>

<script type="application/javascript">
    //绘制柱形图脚本
    $(document).ready(function(){
        var morrisCharts = function() {
            Morris.Bar({
                element: 'morris-bar-example',
                data: [
                    { y: '周一', a: 20,b:60,c:40},
                    { y: '周二', a: 30,b:35,c:50},
                    { y: '周三', a: 50,b:60,c:80},
                    { y: '周四', a: 75,b:60,c:80},
                    { y: '周五', a: 80,b:100,c:83},
                    { y: '周五', a: 60,b:90,c:80},
                    { y: '周六', a: 70,b:120,c:80},
                    { y: '周日', a: 90,b:180,c:100}
                ],
                xkey: 'y',
                ykeys: ['a','b','c'],
                labels: ['业务一','业务二','业务三'],
                barColors: ['#B64645', '#33414E','#95B75D']
            });
        }();
    });
</script>